﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using QLCONGNOLIBS.Securities;

namespace QLCONGNOLIBS.Controllers
{
    public class EmployeeControllers
    {
        private SqlConnection m_objConnection;
        private SecurityEntity m_objSecurity;
        private QLCONGNOLIBS.Models.EmployeeModels m_objEmployeeModels;

        public EmployeeControllers(SqlConnection objConnection, SecurityEntity objSecurity)
        {
            m_objConnection = objConnection;
            m_objSecurity = objSecurity;
            m_objEmployeeModels = new QLCONGNOLIBS.Models.EmployeeModels(objConnection, m_objSecurity);
        }

        public QLCONGNOLIBS.Models.DbSetQLCNEn.IEmployeeDataTable getEmployee()
        {
            return m_objEmployeeModels.GetElements();
        }
    }
}
